<template>
	<view class="container">
		<z-paging ref="paging" :auto='true' bg-color="#F5F5F5" class="zpaing" v-model="dataList" @query="getDataList">
			<view class="zPagingLoad" slot="loading">
				<u-loading-icon size="25"></u-loading-icon>
			</view>
			<view class="content">
				<view class="itemDiv" v-for="(item,index) in dataList" :key="index">
					<view class="one">
						<text class="oneP">全身理疗按摩</text>
						<text class="kpz">开票中</text>
						<!-- <text class="ykp">已开票</text> -->
					</view>
					<view class="two">
						<text>开票时间</text>
						<text>2024-03-06 09:26:35</text>
					</view>
					<view class="two">
						<text>开票类型</text>
						<text>数电普票-个人</text>
					</view>
					<view class="three">
						<text>金额</text>
						<text>￥288.00</text>
					</view>
					<view class="btnCon">
						<!-- <view class="btn">
							<text>撤回</text>
						</view> -->
						<view class="btn2" @tap="goto('pages/owns/invoice/invoiceAdd')">
							<text>重新开票</text>
						</view>
					</view>
				</view>
			</view>
		</z-paging>
	</view>
</template>

<script>
	import baseMixin from "@/mixin/baseMixin.js"
	export default {
		mixins: [baseMixin],
		data() {
			return {
				dataList: []
			};
		},
		methods: {
			getDataList(pageNo, pageSize) {
				this.$refs.paging.complete([{},
					{},
					{},
				]);
				// let params = {
				// 	pageNo: pageNo,
				// 	pageSize: pageSize
				// }
				// this.fnTestList(params).then((res) => {
				// 	this.$refs.paging.complete(res.rows);
				// })
			},
		}
	};
</script>

<style lang="scss" scoped>
	.kpz {
		color: $theme-color;
	}

	.ykp {
		color: rgba(152, 160, 166, 1);
	}

	.container {
		position: relative;

		.content {
			padding: 8rpx 32rpx 0 32rpx;
		}

		.itemDiv {
			position: relative;
			padding: 24rpx;
			border-radius: 24rpx;
			background: rgba(255, 255, 255, 1);
			margin: 0 auto;
			margin-top: 24rpx;
			font-size: 24rpx;
			line-height: 34.76rpx;

			.one {
				display: flex;
				align-items: center;
				justify-content: space-between;

				.oneP {
					font-size: 28rpx;
					font-weight: bold;
				}
			}

			.two {
				display: flex;
				align-items: center;
				margin: 12rpx 0;

				text:nth-child(1) {
					width: 112rpx;
				}
			}

			.three {
				display: flex;
				align-items: center;

				text:nth-child(1) {
					width: 112rpx;
				}

				text:nth-child(2) {
					color: rgba(255, 140, 64, 1);
				}
			}

			.btnCon {
				position: absolute;
				bottom: 24rpx;
				right: 24rpx;

				.btn {
					width: 144rpx;
					height: 56rpx;
					opacity: 1;
					border-radius: 40rpx;
					border: 2rpx solid rgba(229, 229, 229, 1);
					display: flex;
					justify-content: center;
					align-items: center;
					font-size: 24rpx;
				}

				.btn2 {
					@extend .btn;
					border: 2rpx solid rgba(255, 85, 77, 1);
					color: rgba(255, 85, 77, 1);
				}
			}
		}
	}
</style>